﻿/*
* 作者:haojielyb
* 邮箱:haojielyb@qq.com
*/

using System.IO;
using System.Threading.Tasks;

namespace Haojielyb.Swagger2md
{
    /// <summary>
    /// ISwagger2mdGenerator
    /// </summary>
    public interface ISwagger2mdGenerator
    {
        /// <summary>
        /// 获取Swagger流文件
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<MemoryStream> GetSwagger2mdStreamAsync(string name);

        /// <summary>
        /// Swagger to MarkDown
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        string GetSwagger2md(string name);
    }
}